home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / dev / cross / GBDK-2.0.lha / GBDK / include / sys / malloc.h
C/C++ Source or Header  |  1998-10-01  |  508b  |  27 lines

  1. #ifndef __SYS_MEM_H
  2. #include <gb.h>
  3. #include <stdlib.h>
  4.  
  5. #define MALLOC_UNUSED    0
  6. #define MALLOC_FREE    1
  7. #define MALLOC_USED    2
  8. #define MALLOC_MAGIC    123
  9. #define MALLOC_NUMHUNKS    10
  10. typedef struct smalloc_hunk    mmalloc_hunk;
  11. typedef struct smalloc_hunk *    pmmalloc_hunk;
  12.  
  13. struct smalloc_hunk {
  14.     UBYTE magic;
  15.     pmmalloc_hunk    next;
  16.     UWORD size;
  17.     int status;
  18. };
  19.  
  20. extern UBYTE malloc_heap_start;
  21.  
  22. extern pmmalloc_hunk malloc_first;
  23.  
  24. void malloc_gc(void);
  25. void debug( char *routine, char *msg );
  26. #endif    /* __SYS_MEM_H */
  27.